#!/bin/sh
# Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
# HYPRE Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

#=============================================================================
# struct: timing and parallel scaling efficiency test
#=============================================================================

#=============================================================================
# Perform as a single psub process, throw away the first test in
# each configuration
#=============================================================================
#BATCH
mpirun -np 1 ./struct -n 30 30 30 -solver 11
mpirun -np 1 ./struct -n 30 30 30 -solver 11 > efficiency.out.0
mpirun -np 1 ./struct -n 30 30 30 -solver 11 > efficiency.out.1
mpirun -np 1 ./struct -n 30 30 30 -solver 11 > efficiency.out.2
#END

#BATCH
mpirun -np 8 ./struct -n 30 30 30 -P 2 2 2 -solver 11
mpirun -np 8 ./struct -n 30 30 30 -P 2 2 2 -solver 11 > efficiency.out.3
mpirun -np 8 ./struct -n 30 30 30 -P 2 2 2 -solver 11 > efficiency.out.4
mpirun -np 8 ./struct -n 30 30 30 -P 2 2 2 -solver 11 > efficiency.out.5
#END

#BATCH
mpirun -np 64 ./struct -n 30 30 30 -P 4 4 4 -solver 11
mpirun -np 64 ./struct -n 30 30 30 -P 4 4 4 -solver 11 > efficiency.out.6
mpirun -np 64 ./struct -n 30 30 30 -P 4 4 4 -solver 11 > efficiency.out.7
mpirun -np 64 ./struct -n 30 30 30 -P 4 4 4 -solver 11 > efficiency.out.8
#END
